﻿@using UI.Nafania.Helpers
@using WebService.Nafania.ViewLayer.Model.Base
@model WebService.Nafania.BussinesLayer.Model.Generator.BlockInfo
				 
<script type="text/javascript">
	$(document).ready(function () {
		updateBlockLinks();
	});
</script>

@using (Html.BeginForm("BlockData", "Home"))
{
	@Html.HiddenFor(m => m.Alias)
	@Html.HiddenFor(m => m.Name)
	@Html.HiddenFor(m => m.Version)
	
	foreach(TemplateView template in Model.ViewProperties)
	{
		@Html.ToView(template)
	}

	<input type="submit" value="Refresh" />
}